package com.icewld.alarmofremindingme;

public class TimePlan {

    private int tt_length;
    int [][] timetable;
    String[][] coursetable;

    public TimePlan(){
        tt_length = 19;
    }

    public int[][] WriteTimeTable(){
        timetable = new int[3][tt_length];
        timetable[0] = new int[]{7, 8,  8,  9, 9,  10, 11, 11, 12, 14, 14, 14, 15, 16, 16, 17, 18, 20, 21};
        timetable[1] = new int[]{9, 15, 50, 1, 50, 10, 1,  10, 1,  1,  30, 45, 35, 15, 55, 10, 1,  15, 1};
        timetable[2] = new int[]{2, 0,  1,  0, 1,  0,  1,  0,  1,  0,  1,  0,  1,  0,  1,  0,  1,  0,  1};
        return timetable;
    }

    public String[][] WriteCourseTable(){
        coursetable = new String[9][7];
        //                             天      一    二     三     四     五     六
        coursetable[0] = new String[]{"P"   ,"Math","En"  ,"ZZ"  ,"Math","Net" ,"X"};
        coursetable[1] = new String[]{"P"   ,"OS"  ,"JZ"  ,"OS"  ,"En"  ,"JZ"  ,"X"};
        coursetable[2] = new String[]{"ZZ"  ,"Net" ,"OS"  ,"Math","Math","Math","Math"};
        coursetable[3] = new String[]{"Net" ,"En"  ,"Net" ,"En"  ,"OS"  ,"En"  ,"JZ"};
        coursetable[4] = new String[]{"Math","DS"  ,"ZZ"  ,"Math","Net" ,"ZZ"  ,"En"};
        coursetable[5] = new String[]{"En"  ,"JZ"  ,"DS"  ,"DS"  ,"JZ"  ,"OS"  ,"OS"};
        coursetable[6] = new String[]{"JZ"  ,"ZZ"  ,"Math","JZ"  ,"DS"  ,"Math","Math"};
        coursetable[7] = new String[]{"D"   ,"Math","JZ"  ,"En"  ,"En"  ,"En"  ,"P"};
        coursetable[8] = new String[]{"D"   ,"JZ"  ,"En"  ,"Math","Math","DS"  ,"P"};

        return coursetable;
    }

    public int GetttLength(){
        return tt_length;
    }

}
